<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddStatusAndDeletedAtToPaymentWebWalletsTable extends Migration
{
    public function up()
    {
        Schema::table('payment_web_wallets', function (Blueprint $table) {
            $table->integer('status')->default(1); // 状态字段，默认为 active
            $table->softDeletes(); // 添加 deleted_at 字段
        });
    }

    public function down()
    {
        Schema::table('payment_web_wallets', function (Blueprint $table) {
            $table->dropColumn('status'); // 删除 status 字段
            $table->dropSoftDeletes(); // 删除 deleted_at 字段
        });
    }
}